<tr>
    <td><img style="width:100px;height:50px;" src="{$_W['attachurl']}{$ads['ads_pic']}"/></td>
    <td><span class="label label-default">{$ads['ads_id']}</span> <span class="label label-primary">{$ads['ads_did']}</span>
        {if $ads['ads_type']=='1'}<span class="label label-success">首页</span>
        {elseif $ads['ads_type']=='2'}<span class="label label-danger">社区</span>
        {elseif $ads['ads_type']=='3'}<span class="label label-info">老师</span>
        {else}
        {/if}
    </td>

    <td>
        {if $ads['ads_pid']=='1'}<span class="label label-success">显示</span>
        {elseif $ads['ads_pid']=='2'}<span class="label label-danger">隐藏</span>
        {else}
        {/if}
    </td>

    <td><span class="label label-info">{$ads['ads_title']}</span></td>
    <td>{php echo date('Y-m-d H:i:s',$ads['ads_time']);}</td>
    <td>

        {if $ads['ads_pid']=='2'}
        <a class="btn btn-default" href="{php echo $this->createWebUrl('ads_update',array('ads_id'=>$ads['ads_id'],'ads_pid'=>'1'));}" role="button"><i class="fa fa-eye fa-fw"></i></a>
        {elseif $ads['ads_pid']=='1'}
        <a class="btn btn-default" href="{php echo $this->createWebUrl('ads_update',array('ads_id'=>$ads['ads_id'],'ads_pid'=>'2'));}" role="button"><i class="fa fa-eye-slash fa-fw"></i></a>
        {else}{/if}

        <a class="btn btn-default" href="{php echo $this->createWebUrl('ads_edit',array('ads_id'=>$ads['ads_id']));}" role="button"><i class="fa fa-pencil fa-fw"></i></a>

        <a onclick="delcfm()" class="btn btn-default" href="{php echo $this->createWebUrl('ads_del',array('ads_id'=>$ads['ads_id']));}" role="button"><i class="fa fa-trash-o fa-fw"></i></a>
    </td>
</tr>


